// custom.js
import { reactive, computed } from 'vue';

const state = reactive({
  CustomData: null,
});

export function customStore() {
  const setCustomData = (data) => {
    state.CustomData = data;
  };

  const getCustomData = computed(() => state.CustomData);

  const resetCustomData = () => {
    state.CustomData = null;
  };

  return {
    setCustomData,
    getCustomData,
    resetCustomData,
  };
}